Page({
  data: {
    petAvatar: "",
    petNo: "",
    petName: ""
  },

  onLoad: function (options) {
    var info = new Object();
    var infoStr = decodeURIComponent(options.pet);
    info = JSON.parse(infoStr);
    console.log(info);
    this.setData({
      petAvatar: info.avatar,
      petNo: info.petNo,
      petName: info.petName
    })
  },
  navToPetList: function () {
    wx.switchTab({
      url: "/pages/index/index"
    });
  }
})